// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** taskAdd POST /api/task/add */
export async function taskAddUsingPost(body: API.AddTaskRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/task/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** taskDeleteTaskById POST /api/task/delete */
export async function taskDeleteTaskByIdUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/task/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** taskGetTaskById POST /api/task/get */
export async function taskGetTaskByIdUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.taskGetTaskByIdUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseTask_>('/api/task/get', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** taskGetTaskVOById POST /api/task/get/vo */
export async function taskGetTaskVoByIdUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.taskGetTaskVOByIdUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseTaskVO_>('/api/task/get/vo', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** taskGetTaskList POST /api/task/list */
export async function taskGetTaskListUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.taskGetTaskListUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListTask_>('/api/task/list', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** taskGetTaskVOList POST /api/task/list/vo */
export async function taskGetTaskVoListUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.taskGetTaskVOListUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListTaskVO_>('/api/task/list/vo', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** taskGetTaskPage POST /api/task/page */
export async function taskGetTaskPageUsingPost(
  body: API.QueryTaskRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageTask_>('/api/task/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** taskUpdate POST /api/task/update */
export async function taskUpdateUsingPost(
  body: API.UpdateTaskRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/task/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
